/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "博客管理",TableName = "Blog")]
    public partial class Blog:BaseEntity
    {
        /// <summary>
       ///博客编号 
       /// </summary>
       [Key]
       [Display(Name ="博客编号 ")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int BlogId { get; set; }

       /// <summary>
       ///博客分类
       /// </summary>
       [Display(Name ="博客分类")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? BlogCategoryId { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [MaxLength(300)]
       [Column(TypeName="nvarchar(300)")]
       [Editable(true)]
       public string BlogDesc { get; set; }

       /// <summary>
       ///内容
       /// </summary>
       [Display(Name ="内容")]
       [Column(TypeName="varchar(max)")]
       [Editable(true)]
       public string BlogContext { get; set; }

       /// <summary>
       ///博客标题
       /// </summary>
       [Display(Name ="博客标题")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string BlogTitle { get; set; }

       /// <summary>
       ///创建人Id
       /// </summary>
       [Display(Name ="创建人Id")]
       [Column(TypeName="int")]
       public int? CreateID { get; set; }

       /// <summary>
       ///发布人
       /// </summary>
       [Display(Name ="发布人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Creator { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///发布时间
       /// </summary>
       [Display(Name ="发布时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ReleaseDate { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人Id
       /// </summary>
       [Display(Name ="修改人Id")]
       [Column(TypeName="int")]
       public int? ModifyID { get; set; }

       
    }
}